﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
         CodeBehind="GroupEdit.aspx.cs" Inherits="SARS.Course.Group.GroupEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1 id="lblHeading" class="heading1Title">
        <b>MODIFY GROUP
            <asp:Label runat="server" ID="hdlabel"></asp:Label></b>&nbsp;</h1>
    <table class="style1">
        <tr>
            <td class="leftLabel">
                Group Name:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtGroupName" Width="245px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="leftLabel">
                Course Name:
            </td>
            <td>
                <asp:Label runat="server" ID="lbGroupCourse"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2" >
            </td>
        </tr>
        <tr>
            <td class="leftLabel">
                Current Group&#39;s Tutorial:
            </td>
            <td>
                <asp:GridView ID="gvGroupTutor" runat="server" AutoGenerateColumns="False" CellPadding="4"
                              ForeColor="#333333" GridLines="None" Width="580px" DataKeyNames="UserID">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="UserID" HeaderText="ID">
                            <HeaderStyle HorizontalAlign="Center" Width="25px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="FullName" HeaderText="Tutor Name">
                            <HeaderStyle HorizontalAlign="Left" />
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Phone" HeaderText="Tutor Phone">
                            <HeaderStyle HorizontalAlign="Left" />
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Email" HeaderText="Tutor Email">
                            <HeaderStyle HorizontalAlign="Left" />
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Delete">
                            <ItemTemplate>
                                <asp:CheckBox runat="server" ID="cbDelete"/>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="50px"></ItemStyle>
                        </asp:TemplateField>
                            
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td colspan="2">
                <div align="center">
                    <asp:Button runat="server" ID="btnCancel" Text="Back to Group" Width="120" 
                                onclick="btnCancel_Click"/>&nbsp;
                    <asp:Button runat="server" ID="btnSave" Text="Save" Width="120" 
                                onclick="btnSave_Click"/> &nbsp;
                    <asp:Button runat="server" ID="btnAssignTutor" Text="Assign other tutor" Width="124px" 
                                OnClick="btnAssignTutor_OnClick"/> 
                </div>
            </td>
        </tr>
    </table>
</asp:Content>